<?php
//检查网站是否已经安装，如果没有安装则不能访问任何一个网页
header('Content-Type: text/html; charset=utf-8');
if(!file_exists("install_lock.txt")){
	echo "对不起！本网站没有安装不能使用. &nbsp;&nbsp;&nbsp;&nbsp; 请点击 <a href='install/index.php'>安装</a>";
	exit();
}
//加载初始化文件
require 'init.inc.php';
$smarty->assign("appName",APP_NAME);
$smarty->assign("appPath",APP_PATH);
$smarty->assign("stylePath",STYLE_PATH.APP_STYLE);
$product=new Product();
$verify=new Verify();
$mission=new Mission();


$url="http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$smarty->assign("url",$url);
?>